package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_message;

import cn.com.api.mapper.ApiU_messageMapper;

import cn.com.api.service.ApiU_messageService;

/**
 * 
 **/
@Service
public class U_messageServiceImplBase {
	@Autowired
	private ApiU_messageMapper apiU_messageMapper;

	// 根据id获取
	public ApiU_message findU_messageById(Integer id) {
		ApiU_message u_message = apiU_messageMapper.findU_messageById(id);
		return u_message;
	}

	// 查看数据集
	public List<ApiU_message> findU_messages() {
		List<ApiU_message> u_messages = apiU_messageMapper.findU_messages();
		return u_messages;
	}

	// 根据条件查看数据集
	public List<Map<String, Object>> findU_messagesByMap(HashMap condition) {
		List<Map<String, Object>> u_messages = apiU_messageMapper.findU_messagesByMap(condition);
		return u_messages;
	}

	// 添加
	public int insertU_message(ApiU_message u_message) {
		int ret_I = apiU_messageMapper.insertU_message(u_message);
		return ret_I;
	}

	// 修改
	public int updateU_message(ApiU_message u_message) {
		int ret_I = apiU_messageMapper.updateU_message(u_message);
		return ret_I;
	}

	// 删除
	public int deleteU_message(Integer id) {
		int ret_I = apiU_messageMapper.deleteU_message(id);
		return ret_I;
	}

	// Foreign keys revelant

	// region Indexs revelant

}
